﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;

namespace BUS
{
    public class ImageBL
    {
        DAL.ImageDAL image = new ImageDAL();

        #region[Image_SelectByID]
        public DTO.ImageDTO Image_SelectByID(int id)
        {
            return image.Image_SelectByID(id);
        }
        #endregion

        #region[Image_SelectByName]
        public int Image_SelectByName(byte[] img)
        {
            return image.Image_SelectByName(img);
        }
        #endregion

        #region [Image_Insert]
        public bool Image_Insert(DTO.ImageDTO img)
        {
            return image.Image_Insert(img);
        }
        #endregion



        #region [Image_Delete]
        public bool Image_DeleteByID(DTO.ImageDTO img)
        {
            return image.Image_DeleteByID(img);
        }
        #endregion

    }
}
